import request from '@/utils/request'

// 查询设备shell模板列表
export function listPlatformDeviceShellTemplate(query) {
  return request({
    url: '/genius/platform-device-shell-template/list',
    method: 'get',
    params: query
  })
}

// 查询设备shell模板详细
export function getPlatformDeviceShellTemplate(id) {
  return request({
    url: '/genius/platform-device-shell-template/' + id,
    method: 'get'
  })
}

// 新增设备shell模板
export function addPlatformDeviceShellTemplate(data) {
  return request({
    url: '/genius/platform-device-shell-template',
    method: 'post',
    data: data
  })
}

// 修改设备shell模板
export function updatePlatformDeviceShellTemplate(data) {
  return request({
    url: '/genius/platform-device-shell-template',
    method: 'put',
    data: data
  })
}

// 删除设备shell模板
export function delPlatformDeviceShellTemplate(id) {
  return request({
    url: '/genius/platform-device-shell-template/' + id,
    method: 'delete'
  })
}

// 逻辑删除设备shell模板
export function removedPlatformDeviceShellTemplate(id) {
  return request({
    url: '/genius/platform-device-shell-template/' + id,
    method: 'delete'
  })
}
